import java.util.Scanner;

public class PasswordCheck {
	public static void main(String[] args){
		String password;
		int passwordLength;
		Scanner input = new Scanner(System.in);
		System.out.print("Enter a password: ");
		password = input.next();
		input.close();
		passwordLength = password.length();
		
		if(passwordLength > 4 && passwordLength < 9){
			System.out.println("The password is " + passwordLength + " characters long, and therefore it is less than 9 and greather than 4");
		}else if(passwordLength <= 4){
			System.out.println("The password is " + passwordLength + " characters long, which means it is not greater than 4.");
		}else if(passwordLength >= 9){
			System.out.println("The password is " + passwordLength + " characters long, which means is is not less than 9.");
		}
	}	
}
